//
//  jg_docsTests.swift
//  jg_docsTests
//
//  Created by Longxiang Guo (QXQ4633) on 2021/9/6.
//

import XCTest
import MetricKit

class jg_docsTests: XCTestCase {

    override func setUpWithError() throws {
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }

    override func tearDownWithError() throws {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
    }

    func testExample() throws {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
    }

    func testPerformanceExample() throws {
        // This is an example of a performance test case.
        measure {
            // Put the code you want to measure the time of here.
        }
    }
    
    func testLaunchTimeExample1() throws {
        measure(options: XCTMeasureOptions.default) {
           let app = XCUIApplication.init()
           app.launch()
           stopMeasuring()
        }
    }
    
    func testLaunchTimeExample2() throws {
//        measure(metrics: [XCTPerformanceMetric(rawValue: "performance")], options: XCTMeasureOptions.default) {
//            let app = XCUIApplication.init()
//            app.launch()
//            
//        }
    }
}
